package main

import "fmt"

type Stu struct {
	Name string
	Age int
}

func main() {

	var stu1 = Stu{"小明", 19}
	stu2 := Stu{"小王", 20}

	var stu3 = Stu{
		Name: "jack",
		Age: 20,
	}
	stu4 := Stu {
		Age: 30,
		Name: "marry",
	}

	fmt.Println(stu1, stu2, stu3, stu4)

	var stu5 = &Stu{"小红", 30}
	stu6 := &Stu{"小李", 18}

	var stu7 = &Stu {
		Name: "小李",
		Age: 49,
	}

	stu8 := &Stu {
		Age: 59,
		Name: "小丁",
	}

	fmt.Println(*stu5, *stu6, *stu7, *stu8)

}